﻿using System;
using System.Collections.Generic;
using System.Drawing;

namespace oSoft.ColorPicker
{
    public class oSoftColorPickerEventArgs: EventArgs
    {
        public Color color { get; set; }
        public override string ToString()
        {
            if (color.IsKnownColor)
            {
                return color.ToKnownColor().ToString();
            }
            else 
            {
                return color.R.ToString() + "," + color.G.ToString() + "," + color.B.ToString();
            }
        }
    }
}
